projects
/
babl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e356005
)
tools: babl-icc-rewrite; abort with error message instead of segfault
author
Øyvind Kolås
<pippin@gimp.org>
Sat, 2 Sep 2017 13:32:23 +0000
(15:32 +0200)
committer
Øyvind Kolås
<pippin@gimp.org>
Sat, 2 Sep 2017 13:32:23 +0000
(15:32 +0200)
tools/babl-icc-rewrite.c
patch
|
blob
|
history
diff --git
a/tools/babl-icc-rewrite.c
b/tools/babl-icc-rewrite.c
index bf18bc7e1c2cfabf617801fafa4c0a586aec564b..bb1bc64b6c0d39b6def240e7ca76618dee39459c 100644
(file)
--- a/
tools/babl-icc-rewrite.c
+++ b/
tools/babl-icc-rewrite.c
@@
-49,6
+49,11
@@
main (int argc,
babl = babl_space_from_icc (icc_data, icc_len, &error);
free (icc_data);
+ if (error || !babl)
+ {
+ fprintf (stderr, "%s error %s", argv[0], error);
+ return -1;
+ }
icc_data = (char *)babl_space_to_icc (babl, &genlen);
if (icc_data)